<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Settings extends MY_Controller {
	private $data;
    function __construct(){
		parent::__construct();
		
		$this->load->model('community_model');
		$this->template->set_layout('two_cols');
    }
    
    function index(){
        echo 'Hello worlds!';
    }
    
    function create(){
		
        $this->data['community_category'][''] = 'Select community category';
        foreach($this->community_model->get_community_categories() as $item){
            $this->data['community_category'][$item->category_id] = $item->category_label;
        }    
	   
        $this->data['community_visibility']['']='Select Visibility';
        foreach($this->community_model->get_community_visibility() as $item){
            $this->data['community_visibility'][$item->visibility_code] = $item->visibility_name;
        }

        $this->template
				->inject_partial('account-name',$this->users_lib->get_fullname())
                ->set_partial('sidebar-left','create_help')
                ->title('Create Community')
                ->build('create_view',$this->data);
	}
}

